import request from '@/utils/request'

// 查询招标方式列表
export function listProjecttendermode(query) {
  return request({
    url: '/system/projecttendermode/list',
    method: 'get',
    params: query
  })
}

export function listsProjecttendermode(query) {
  return request({
    url: '/system/projecttendermode/lists',
    method: 'get',
    params: query
  })
}

// 查询招标方式详细
export function getProjecttendermode(id) {
  return request({
    url: '/system/projecttendermode/' + id,
    method: 'get'
  })
}

// 新增招标方式
export function addProjecttendermode(data) {
  return request({
    url: '/system/projecttendermode',
    method: 'post',
    data: data
  })
}

// 修改招标方式
export function updateProjecttendermode(data) {
  return request({
    url: '/system/projecttendermode',
    method: 'put',
    data: data
  })
}

// 删除招标方式
export function delProjecttendermode(id) {
  return request({
    url: '/system/projecttendermode/' + id,
    method: 'delete'
  })
}
